<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>

<!-- header -->
<jsp:include page="../include/header.jsp"></jsp:include>
	<header id="header">
	
	<!--/header-middle-->
	<jsp:include page="../include/header_middle.jsp"></jsp:include>		
	
	<!--header-bottom-->
	<jsp:include page="../include/header_bottom.jsp"></jsp:include>	
	<!--/header-bottom-->
	
	</header>
	<!--/header-->
	
	<section>
		<div class="container">
			<div class="row">
				<div class="col-sm-2">
				</div>
				
				<div class="col-sm-9 padding-right">	
					<!--각자 삽입할 부분-->
					<div id="board_list" align="center" class="row">
						<table class="table table-striped">
							<tr>
								<td width='15%' align='center'>번호</td>
								<td width='60%' align='center'>제목</td>
								<td width='15%' align='center'>글쓴이</td>
								<td width='10%' align='center'>조회수</td>
							</tr>
							
							<c:forEach items="${ boardList }" var="board">
								<tr>
									<td align="center">${ board.board_no }</td>
									<td><a href="boardview?boardno=${ board.board_no }">${board.board_title }</a></td>
									<td align="center">${board.board_nickname }</td>
									<td align="center">${board.board_show }</td>
								</tr>
							</c:forEach>
							
						</table>
						
					</div>
					<div class="row" align="left">
						<c:if test="${ isLogin }">
							<a href="boardwrite"><button type="submit" class="btn btn-primary btn-xs">쓰기</button></a>
						</c:if>
					</div>
					<br />
					<div id="page_list" align="center" class="row">
						${ label }
					</div>
					<!--삽입 끝 -->					
				</div>
			</div>
		</div>
	</section>

	<!--Footer-->
	<jsp:include page="../include/footer.jsp"></jsp:include>
	<!--/Footer-->